<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<%@page import="com.crm.entity.AttachmentHistory,com.crm.entity.Supplier,java.util.*" %>
<head>
<link href="<%=application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />



<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-1.7.2.min.js"></script>
<script language="javaScript" src="<%=application.getContextPath()%>/js/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-1.6.min.js"></script>	
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery-ui-1.8.17.custom.min.js"></script>	
<link rel="stylesheet" href="<%=application.getContextPath()%>/css/jquery-ui-1.8.17.custom.css"/>
	
<script language="JavaScript" src="<%=application.getContextPath()%>/js/gen_validatorv4.js" type="text/javascript" ></script>
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery.validate.js"></script>	
<script type="text/javascript" src="<%=application.getContextPath()%>/js/jquery.validate.min.js"></script>	
<script type="text/javascript" language="javascript" src="<%=application.getContextPath()%>/js/jquery.dataTables.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<link href="<%=application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
	$(document).ready(function() {
		oTable = $('#printtab').dataTable( {"bPaginate": false,
		        "bLengthChange": false,
		        "bFilter": true,
		        "bSort": false,
		        "bInfo": false,
		        "bAutoWidth": false,
		        "sScrollY": "250px"
				});

	} );
</script>


<link href="<%=application.getContextPath()%>/css/css-crm.css" rel="stylesheet" type="text/css" />
   
</head>
<body>
<%List<AttachmentHistory> attlist =(List<AttachmentHistory>)request.getAttribute("attlist");%>
<div id="main">
   <%@ include file="common/header.jsp" %>
  <%@ include file="common/submenu.jsp" %>
  <div id="content">
   <div id="resultMsg" class="result_msg">
    <% 
   String msg= request.getParameter("msgsrc");
    	if(msg!=null){
    		System.out.println(msg);
    		out.println(msg);
    	}
    %>
    </div>
  <form id="impform" name="impform"  action=""   method="post">
    <div id="work-area2">
      <div class="heading2">Print PurchaseOrder</div>
	  
      <div class="boxIFS">
       
  <table width="100%">
  <tr>  
<td align="center" width="100%">

<div id="historyDiv"  title="Click Here To Open/Close The History" align="center"  style="color:#F6871F ; font-weight: bold; font-size:16px">Purchase Orders</div>
<table>
<tr><td width=100%>
<table id="printtab" width="100%" >
  <thead>
 <tr>
 <th></th>
          </tr>
          </thead>
          <tbody>
<%if( attlist.size()!=0&& attlist!=null){
	for(int i=0;i< attlist.size();i++)
	{%>
<tr><td>View /Print This PO <a  class="linkclass" href="#"  onclick="open_new_window('<%=application.getContextPath() %>/purchaseOrder/get_po.do?quotid=<%= attlist.get(i).getId()%>')" ><%= attlist.get(i).getEnqNO()%></a></td></tr>
<%}
}%>
</tbody>
</table>
</td></tr>
</table>
</td>
</tr>
</table>

<script>
function open_new_window(url) {
	  window.open(url,"Printing Your Quotation","width=500,height=300,left=200,top=10");
	}
</script>
      </div>
    </div>
    </form>
  </div>
  <div id="footer"></div>  
</div>
</body>
<!-- InstanceEnd --></html>

